package com.zwr.sheller.core.common;

public enum WDMExceptionCode {
    //此处写枚举错误
    PARAMETER_PASSING_EXCEPTION("1001","参数传递异常"),
    NO_MATCHING_RESULT("1002","没有匹配的结果"),
    INSERT_FAILED("1003","插入失败"),
    DELETE_FAILED("1004","删除失败"),
    UPDATE_FAILED("1005","更新失败"),
    GOODS_ALREADY_EXISTS("1006","相同的商品已存在购物车，请不要重复添加"),
    SKU_OUT_OF_STOCK("1008","您选购的商品库存不足，订单生成失败"),
    SELECT_FAILED("1007","查询失败"),
    SHOPPINGCART_NOT_EXIST("1009","购物车中没有商品，快去添加吧"),
    CODE_NOT_SURE("1010","核销码不正确"),


    ;

    private String code;
    private String message;

    WDMExceptionCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
